/**
 * 
 */
package com.zc.BankCreditManagement.Test;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

import com.zc.BankCreditManagement.JavaBean.Customer;
import com.zc.BankCreditManagement.JavaBean.CustomerCreditLoan;
import com.zc.BankCreditManagement.JavaBean.DepositDetails;
import com.zc.BankCreditManagement.JavaBean.Manager;
import com.zc.BankCreditManagement.JavaBean.User;
import com.zc.BankCreditManagement.ServiceImpl.CustomerCreditLoanServiceImpl;
import com.zc.BankCreditManagement.ServiceImpl.CustomerServiceImpl;
import com.zc.BankCreditManagement.ServiceImpl.DepositDetailsServiceImpl;
import com.zc.BankCreditManagement.ServiceImpl.ManagerServiceImpl;
import com.zc.BankCreditManagement.ServiceImpl.UserServiceImpl;
import com.zc.BankCreditManagement.Servlet.CusLoanServlet;


/**
 * @author ZhangCheng
 * @time 2019年9月17日
 */
public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		CustomerServiceImpl cSI = new CustomerServiceImpl();
//		System.out.println(cSI.verifyEmail("125", "6873094@qq.com", true));
//		System.out.println("2133".split(" ")[0]);
		System.out.println(cSI.generateCusId());
//		CustomerCreditLoanServiceImpl cccc = new CustomerCreditLoanServiceImpl();
//		CustomerCreditLoan cusCLoan = new CustomerCreditLoan("123", "", 500);
//		cccc.insertNewToDB(cusCLoan);
//		System.out.println("1234".charAt(1));
//		ManagerServiceImpl mSI = new ManagerServiceImpl();
//		Manager m = mSI.getThisInfoById("997", true);
//		m.setManName("zcc");
//		mSI.updateManager(m, true);
//		DepositDetails dD = new DepositDetails("123", "123", "997", "123", 12, 213L, "2019-09-09");
//		DepositDetailsServiceImpl dDS= new DepositDetailsServiceImpl();
//		dDS.insertNewToDB(dD);
//		CustomerServiceImpl cusSI = new CustomerServiceImpl();
//		Customer cus = new Customer("1234", "zcc", "zryy", "湖北武汉", "430001");
//		cusSI.insertThisCusToDB(cus);
//		UserDAO l = new UserDAO();
//		System.out.println(l.getUserInfoById("12", true).getInfo());
//		UserServiceImpl uSI = new UserServiceImpl();
//		CustomerCreditLoan cCLoan = new CustomerCreditLoan("124", "1", 33, "2019-10-15");
//		CustomerCreditLoanServiceImpl cCLSI = new CustomerCreditLoanServiceImpl();
//		cCLSI.insertNewToDB(cCLoan);
//		UserServiceImpl uSI = new UserServiceImpl();
//		System.out.println(uSI.getUserById("123").getInfo());
//		System.out.println("2019-09-29".compareTo("2019-09-27"));
//		System.out.println(new SimpleDateFormat("yyyy-MM-dd").format(new Date()));
//		Date.parse()
//		System.out.println(uSI.isIdConnPWD("12", "21"));
//		System.out.println(uSI.resetPwdTogether("124", "123", "333",true));
//		Scanner sc = new Scanner(System.in);
//		do {
//			System.out.println("请输入您的用户名");
//			String userid = sc.nextLine();
//			System.out.println("请输入您的密码");
//			String pwd = sc.nextLine();
//			if(uSI.isIdConnPWD(userid, pwd)) {
//				System.out.println("登陆成功！");
//				break;
//			}else {
//				System.out.println("您的用户名或密码错误！请重试！");
//			}
//		}while(true);
	}

}
